import { FormSchema } from '/@/components/Form';
export const sqlserverSchemas: FormSchema[] = [
  {
    field: 'interface_type',
    component: 'Select',
    label: '接口类型',
    componentProps: {
      placeholder: '请选择接口类型',
      options: [
        {
          label: '标准',
          value: 1,
          key: 1,
        },
        {
          label: '能源系统',
          value: 2,
        },
        {
          label: '织造MES',
          value: 3,
        },
        {
          label: '印染MES',
          value: 4,
        },
        {
          label: '服装MES',
          value: 5,
        },
      ],
    },
    required: true,
    defaultValue: 1,
  },
  {
    field: 'host',
    component: 'Input',
    label: '域名/IP',
    componentProps: {
      placeholder: '请输入服务器域名或者IP地址',
    },
    required: true,
  },
  {
    field: 'port',
    component: 'Input',
    label: '端口号',
    componentProps: {
      placeholder: '请输入服务端口号',
    },
    required: true,
  },
  {
    field: 'db',
    component: 'Input',
    label: '数据库名称',
    componentProps: {
      placeholder: '请输入数据库名称',
    },
    required: true,
  },
  {
    field: 'user',
    component: 'Input',
    label: '用户名',
    componentProps: {
      placeholder: '请输入数据库用户名',
    },
    required: true,
  },
  {
    field: 'password',
    component: 'InputPassword',
    label: '密码',
    componentProps: {
      placeholder: '请输入数据库密码',
    },
    required: true,
  },
  {
    field: 'table_name',
    component: 'Input',
    label: '表名称',
    componentProps: {
      placeholder: '请输入数据库表名称',
    },
  },
  {
    field: 'table_prefix',
    component: 'Input',
    label: '表名称前缀',
    componentProps: {
      placeholder: '请输入数据库表名称前缀',
    },
  },
];
